package cn.yunhe.back.controller;


import cn.yunhe.back.service.TUserinfoService;
import cn.yunhe.entity.TUserinfo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 代码生成器(自动生成LF)
 * @since 2019-06-12
 */
@RestController
public class TUserinfoController {

    @Autowired
    private TUserinfoService TUserinfoService;

    @RequestMapping("/toUserInfo")
    public ModelAndView toUserInfo() {
        return new ModelAndView("userinfolist");
    }

    @RequestMapping("/getUserInfoList")
    public Page<TUserinfo> getUserInfoList(String pageNum, String pageSize, TUserinfo tUserinfo){
        return TUserinfoService.getUserInfoByPage(pageNum,pageSize,tUserinfo);
    }
    /*@RequestMapping("/uCount")
    public int count(){
        return TUserinfoService.selectCount();
    }*/

}
